package co.yixiang.yshop.module.system.controller.admin.captcha.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import java.util.List;

/**
 * 图片选择验证码验证 Request VO
 *
 * @author yshop
 */
@Schema(description = "管理后台 - 图片选择验证码验证 Request VO")
@Data
public class ImageCaptchaVerifyReqVO {

    @Schema(description = "验证码类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "imageSelect")
    @NotEmpty(message = "验证码类型不能为空")
    private String captchaType;

    @Schema(description = "验证码token", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "验证码token不能为空")
    private String token;

    @Schema(description = "选中的图片索引", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "选中的图片索引不能为空")
    private List<Integer> selectedIndexes;

    @Schema(description = "加密密钥")
    private String secretKey;

}